<include file="../header" />
<body class="J_scroll_fixed">
    <script>

        $(document).ready(function() {
         
             $('button.view').click(function () {

                layer.open({

                    type: 2,
                    title: '查看地图',
                    maxmin: false,
                    shadeClose: true, //点击遮罩关闭层
                    area: ['650px', '600px'],
                    content: "{:U('area/viewMap')}"

                });
            });
            
        });

    </script>
    <div class="wrap J_check_wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a href="{:U('area/index')}">区域信息</a></li>
            <li><a href="{:U('area/add')}">添加区域</a></li>
        </ul>
        <table class="table table-hover table-bordered">
            <thead>
                <tr>
                    <th>编号</th>
                    <th>所在地区</th>
                    <th>区域名称</th>   
                    <th>创建时间</th>
                    <th>查看地图</th>
                    <th>操作</th>
                </tr>
            </thead>
            <tbody>

            <foreach name="list" item="vo">
                <tr>
                    <td>{$vo.area_id}</td>
                    <td>{$vo.region_name}</td>
                    <td>{$vo.name}</td>
                    <td>{$vo.create_time}</td>   
                    <td><button class="btn-success view">查看</button></td>   
                    <td>
                        <a href='{:U("area/edit",array("id"=>$vo["area_id"]))}'>修改</a>
                        |
                        <a class="J_ajax_del" href="{:U('area/delete',array('id'=>$vo['area_id']))}">删除</a>
                    </td>

                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
    <script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>